<?php 
    if(isset($news) && count($news) > 0):
        $first_uri = get_base_url() . url_title(trim($news[0]->category), 'dash', TRUE) . '/' . url_title(trim($news[0]->title), 'dash', TRUE) . '-n' . $news[0]->cat_id . '-' . $news[0]->id;
        $thumbnail = ($news[0]->thumbnail != '') ? $news[0]->thumbnail : '/images/noimage.jpg';
?>
<div class="title"><?php echo $title;;?></div>
    <div class="list_c_1">
        <a href="<?php echo $first_uri;?>" class="list_c_2">
            <img src="<?php echo $thumbnail;?>" class="list_c_3 bo_img">
        </a>

        <div class="list_c_4">
            <h3 class="list_c_5"><a href="<?php echo $first_uri;?>"><?php echo $news[0]->title;?></a></h3>
            <p class="list_c_6">
                <?php echo shorten_str($news[0]->summary, MAXLENGHT_HP_NEWS_DESCRIPTION);?>
            </p>
            <p class="pull-right">
                <a href="<?php echo $first_uri;?>" class="list_c_7">Xem tiếp <strong>»</strong></a>
            </p>
        </div>
        <div class="clearfix"></div>

        <ul class="list_c_8">
            <?php 
                foreach($news as $index =>  $new):
                    if($index != 0):
                        $uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
            ?>
                <li class="list_c_9"><a href="<?php echo $uri;?>"><?php echo shorten_str($new->title, MAXLENGHT_RELATED_NEWS_HP);?></a></li>
            <?php endif; endforeach;?>
        </ul>
    </div> <!-- /list_c_1 -->
    <hr class="cach">
    <?php endif;?>